@extends('frontend/layouts/flaty_to_bootstrap')

@section('content.titley')
VanningCompany Management ::
@parent
@stop

@section('content.breadcrumb.inner')
    <li><a href="{{  route('home') }}"><i class="icon-home"></i> Dashboard</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li class="active">VanningCompany list</li>
@stop

@section('content.main')

<p>{{ link_to_route('car_balance.vanning_company.create', 'Add new VanningCompany', null, array('class' => 'btn btn-info')) }}</p>

    <!--{{ link_to_route('car_balance.vanning_company.index', 'Include Deleted VanningCompany', array('withTrashed' => 'true'), array('class' => 'btn btn-medium')) }}
    {{ link_to_route('car_balance.vanning_company.index', 'Show Only Deleted VanningCompany', array('onlyTrashed' => 'true'), array('class' => 'btn btn-medium')) }}-->

{{  $vanning_companys->links() }}

<table class="table table-bordered table-striped table-hover">
    <thead>
    <tr>
                <th>Id</th>
                <th>Name</th>
        
        <th class="span2">Actions</th>
    </tr>
    </thead>
    <tbody>
    @foreach ($vanning_companys as $vanning_company)
    <tr>
        <td>{{  link_to_route('car_balance.vanning_company.show', $vanning_company->id, array($vanning_company->id), array()) }}</td>
        <td>{{  $vanning_company->name }}</td>


        <td>
            <a href="{{  route('car_balance.vanning_company.edit', $vanning_company->id) }}" class="btn btn-mini">Edit</a>
            @if ( ! is_null($vanning_company->deleted_at))
            <a href="{{  route('car_balance.vanning_company.restore', $vanning_company->id) }}" class="btn btn-mini btn-warning">Restore</a>
            @else
            <a href="{{  route('car_balance.vanning_company.delete', $vanning_company->id) }}" class="btn btn-mini btn-danger">Delete</a>
            @endif
        </td>
    </tr>
    @endforeach
    </tbody>
</table>

{{  $vanning_companys->links() }}

@stop